Page({
  data: {
    checkName: "遗传/生殖",
    userId: ""
  },
  order_check: function () {
    var that = this;
    var e_data = wx.getStorageSync('trUserInfo');
    wx.request({
      url: getApp().globalData.host_url + '/order/ajax_wxUserOrder?checkName=' + that.data.checkName + '&userId=' + e_data.userId,
      method: 'GET',
      data: {},
      success: function (res) {
        var errorMsg = res.data.errorMsg;
        var orderNo = res.data.orderNo;
        wx.showModal({
          title: '您已预约成功',
          content: orderNo + "\r\n" + errorMsg,
          showCancel: false,
        })
      },
      fail: function (res) {
        var textToast = "信息获取失败！\r\n服务器异常请稍后！";
        wx.showModal({
          title: '异常提示',
          content: textToast,
          showCancel: false,
        })
      }
    })
  }
})
